<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class CustomerServiceResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            'id' => $this->id ?? 0,
            'name' => $this->name ?? '',
            'telephone' => $this->telephone ?? '',
        ];
    }
}
